﻿@model _2._16._2015_Blog.Models.BlogListViewModel

@{
    ViewBag.Title = "Home Page";
}

<div class="row">
    <div class="col-md-4">
        <h1>Blog Posts (Total: @Model.NumberOfBlogs blog posts)</h1>
        @foreach (var post in Model.Blogs)
        {
            <ul>
                <li>@post.Title</li>
                <li>@post.UserName</li>
                <li>@post.Text</li>
                <li>@post.DateCreated</li>
                <li>@post.Comments.Count comments</li>
                <li>@Html.ActionLink("Read More", "Details", new { Id = post.Id })</li>
            </ul>
        }
   </div>
</div>